package org.pim.smart.hibernate.domain;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * AbstractSysUser entity provides the base persistence definition of the
 * SysUser entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public abstract class AbstractSysUser implements java.io.Serializable {

	// Fields

	private Integer userOid;
	private SysUserType sysUserType;
	private String userId;
	private String userPwd;
	private String userName;
	private String userQuestion;
	private String questionAnswer;
	private Date createDate;
	private Date lastLogin;
	private Set groupContacts = new HashSet(0);
	private Set contactTags = new HashSet(0);

	// Constructors

	/** default constructor */
	public AbstractSysUser() {
	}

	/** minimal constructor */
	public AbstractSysUser(SysUserType sysUserType, String userId,
			String userPwd, Date createDate, Date lastLogin) {
		this.sysUserType = sysUserType;
		this.userId = userId;
		this.userPwd = userPwd;
		this.createDate = createDate;
		this.lastLogin = lastLogin;
	}

	/** full constructor */
	public AbstractSysUser(SysUserType sysUserType, String userId,
			String userPwd, String userName, String userQuestion,
			String questionAnswer, Date createDate, Date lastLogin,
			Set groupContacts, Set contactTags) {
		this.sysUserType = sysUserType;
		this.userId = userId;
		this.userPwd = userPwd;
		this.userName = userName;
		this.userQuestion = userQuestion;
		this.questionAnswer = questionAnswer;
		this.createDate = createDate;
		this.lastLogin = lastLogin;
		this.groupContacts = groupContacts;
		this.contactTags = contactTags;
	}

	// Property accessors

	public Integer getUserOid() {
		return this.userOid;
	}

	public void setUserOid(Integer userOid) {
		this.userOid = userOid;
	}

	public SysUserType getSysUserType() {
		return this.sysUserType;
	}

	public void setSysUserType(SysUserType sysUserType) {
		this.sysUserType = sysUserType;
	}

	public String getUserId() {
		return this.userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getUserPwd() {
		return this.userPwd;
	}

	public void setUserPwd(String userPwd) {
		this.userPwd = userPwd;
	}

	public String getUserName() {
		return this.userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserQuestion() {
		return this.userQuestion;
	}

	public void setUserQuestion(String userQuestion) {
		this.userQuestion = userQuestion;
	}

	public String getQuestionAnswer() {
		return this.questionAnswer;
	}

	public void setQuestionAnswer(String questionAnswer) {
		this.questionAnswer = questionAnswer;
	}

	public Date getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Date getLastLogin() {
		return this.lastLogin;
	}

	public void setLastLogin(Date lastLogin) {
		this.lastLogin = lastLogin;
	}

	public Set getGroupContacts() {
		return this.groupContacts;
	}

	public void setGroupContacts(Set groupContacts) {
		this.groupContacts = groupContacts;
	}

	public Set getContactTags() {
		return this.contactTags;
	}

	public void setContactTags(Set contactTags) {
		this.contactTags = contactTags;
	}

}